package com.whfc.iot.session;

import io.netty.channel.Channel;

/**
 * @Description:
 * @author: xugcheng
 * @version: 1.0
 * @date: 2019/7/16 15:41
 */
public class Session {

    /**
     * session唯一标识
     */
    private String sessionId;

    /**
     * 硬件类型
     */
    private Integer deviceType;

    /**
     * 是否认证
     */
    private boolean isAuthenticated;

    /**
     * 消息通道
     */
    private Channel channel;

    public Session() {
    }

    public Session(String sessionId) {
        this.sessionId = sessionId;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public Integer getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(Integer deviceType) {
        this.deviceType = deviceType;
    }

    public boolean isAuthenticated() {
        return isAuthenticated;
    }

    public void setAuthenticated(boolean authenticated) {
        isAuthenticated = authenticated;
    }

    public Channel getChannel() {
        return channel;
    }

    public void setChannel(Channel channel) {
        this.channel = channel;
    }
}
